<?xml version="1.0" encoding="UTF-8"?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:p="http://www.prenotazioni.it"> 
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/> 

<xsl:template match="/"> 

	<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="it" lang="it">
		<head>
			<title>Prenotazioni Zoo</title>
		
			<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
			<meta name="description" content="Prenotazioni Zoo Hakuna Matata" />
			<meta name="keywords" content="Zoo, Hakuna Matata, Prenotazioni" />			
			<link href="../css/hakuna.css" rel="stylesheet" type="text/css" media="all" />
			<link href="../immagini/layout/favicon.ico" rel="icon" type="image/x-icon" />
			
		</head>
		<body> 
			
			<p id="logo"> 
				<img src="../immagini/hakuna.gif" alt="Logo Zoo Hakuna Matata" /> 
			</p>
		
			<div id="navig">
				<b class="rtop">
					<b class="r1"></b>
					<b class="r2"></b>
					<b class="r3"></b>
					<b class="r4"></b>
				</b>		
				<ul>
					<li>  
						<a href="../index.html" accesskey="h" tabindex="1">
							<span class="key">H</span>ome  
						</a>				
					</li>
					<li> 
						<a href="../file/chiSiamo.html" accesskey="c" tabindex="2"> 
							<span class="key"> C</span>hi Siamo 
						</a> 
					</li>
					<li> 
						<a href="../file/doveSiamo.html" accesskey="d" tabindex="3"> 
							<span class="key">D</span>ove Siamo 
						</a> 
					</li>
					<li> 
						<a href="../file/orariPrezzi.html" accesskey="o" tabindex="4"> 
							<span class="key">O</span>rari e Prezzi 
						</a> 
					</li>
					<li> 
						<a href="../cgi-bin/prenotazioni.cgi" accesskey="p" tabindex="5"> 
							<span class="key">P</span>renotazioni 
						</a>  
					</li>
					<li> 
						<a href="../file/esploraZoo.html" accesskey="z" tabindex="6"> 
							Esplora lo <span class="key">Z</span>oo 
						</a> 
						<ul>
							<li> 
								<a href="../file/savana.html" accesskey="s" tabindex="7"> 
									<span class="key"> S</span>avana 
								</a> 
							</li>
							<li> 
								<a href="../file/giungla.html" accesskey="g" tabindex="8"> 
									<span class="key">G</span>iungla 
								</a> 
							</li>
							<li> 
								<a href="../file/polo.html" accesskey="l" tabindex="9"> 
									Mondo Po<span class="key">l</span>are 
								</a> 
							</li>
							<li> 
								<a href="../file/deserto.html" accesskey="t" tabindex="10"> 
									Deser<span class="key">t</span>o 
								</a> 
							</li>
							<li> 
								<a href="../file/acqua.html" accesskey="q" tabindex="11"> 
									Mondo Ac<span class="key">q</span>uatico 
								</a> 
							</li>
						</ul>
					</li>			
				</ul>
				<b class="rtop">
					<b class="r4"></b>
					<b class="r3"></b>
					<b class="r2"></b>
					<b class="r1"></b>
				</b>	
			</div>	
			
			<div id="content">
	
				<div id="header">
					<b class="rtop">
						<b class="r1"></b>
						<b class="r2"></b>
						<b class="r3"></b>
						<b class="r4"></b>
					</b>
					<h1> Zoo Hakuna Matata </h1>
					<h2> Qui gli animali non hanno pensieri!</h2>
					<b class="rtop">
						<b class="r4"></b>
						<b class="r3"></b>
						<b class="r2"></b>
						<b class="r1"></b>
					</b>
				</div>
		
				<div id="path">
					<b class="rtop">
						<b class="r1"></b>
						<b class="r2"></b>
						<b class="r3"></b>
						<b class="r4"></b>
					</b>
					<p> Ti trovi in: Visualizza Prenotazioni </p>
					<b class="rtop">
						<b class="r4"></b>
						<b class="r3"></b>
						<b class="r2"></b>
						<b class="r1"></b>
					</b>
				</div>
	
				<div id="corpo">		
					<h2> Prenotazioni</h2>
        				<xsl:for-each select="p:prenotazioni/p:prenotazione">
						<xsl:sort select="p:datiPrenotazione/p:data" />
						<dl class="spaziato">
							<dt> Prenotazione per la data 
								<xsl:value-of select="p:datiPrenotazione/p:data" />
								<xsl:if test="@tutto='s'" >
									(tutto il giorno)
								</xsl:if>
								<xsl:if test="@tutto='n'" >
									(solo pomeriggio)
								</xsl:if>
							</dt>
       							<dd>  <span class="etichetta">Nome:</span>
								<xsl:value-of select="p:datiPersonali/p:nome" /> 
								<span class="spazio"></span>
								<xsl:value-of select="p:datiPersonali/p:cognome" /> 
							</dd>
				
							<xsl:if test="p:datiPersonali/p:citta">
								<dd> <span class="etichetta">Indirizzo:</span>
									<xsl:if test="p:datiPersonali/p:indirizzo">
										<xsl:value-of select="p:datiPersonali/p:indirizzo" />									
										<span class="spazio"></span>
									</xsl:if> 
									<xsl:value-of select="p:datiPersonali/p:citta" />
								</dd>
							</xsl:if>
		
							<dd> <span class="etichetta">e-mail:</span> 
								<xsl:value-of select="p:datiPersonali/p:mail" />
							</dd>
	
							<dd> <span class="etichetta">Telefono:</span> 
								<xsl:value-of select="p:datiPersonali/p:telefono" />
							</dd>
			
							 <xsl:if test="p:datiPrenotazione/p:bigliettiInteri">
								<dd> <span class="etichetta">Biglietti interi:</span>
									<xsl:value-of select="p:datiPrenotazione/p:bigliettiInteri" /> 	
								</dd>
							</xsl:if>
		 
							<xsl:if test="p:datiPrenotazione/p:bigliettiRidotti">
								<dd> <span class="etichetta">Biglietti ridotti:</span>
									<xsl:value-of select="p:datiPrenotazione/p:bigliettiRidotti" /> 	
								</dd>
							</xsl:if>

							 <xsl:if test="p:datiPrenotazione/p:bigliettiGratis">
								<dd> <span class="etichetta">Biglietti Omaggio:</span>
									<xsl:value-of select="p:datiPrenotazione/p:bigliettiGratis" /> 
								</dd>
							</xsl:if>
				           	</dl>
	        			</xsl:for-each>
				</div>
			</div>
			
			<div id="footer">	
				<a href="http://jigsaw.w3.org/css-validator/check/referer" tabindex="12">
	        			<img style="border:0;width:88px;height:31px" 
						src="http://jigsaw.w3.org/css-validator/images/vcss"
	            			alt="CSS Valido!" />
	    			</a>
	
				<a href="http://validator.w3.org/check?uri=referer" tabindex="13">
					<img style="border:0;width:88px;height:31px" 
						src="http://www.w3.org/Icons/valid-xhtml10" 
					alt="Valid XHTML 1.0 Strict" height="31" width="88" />
				</a>
	
			</div>
					
		</body>
	</html> 

	</xsl:template>

</xsl:stylesheet>

